# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Valère Monseur <valere.monseur@ymail.com>

pkgname=cbatticon
pkgver=1.6.13
pkgrel=1
pkgdesc='Lightweight battery icon for the system tray'
arch=(loong64 x86_64)
url='https://github.com/valr/cbatticon'
license=(GPL2)
makedepends=(git)
depends=(libnotify gtk3)
source=("git+$url#commit=2b87a0f033a6cd173fa59174b921cf5d231771b6") # tag: 1.6.12
b2sums=('SKIP')

build() {
  make -C $pkgname WITH_NOTIFY=1 WITH_GTK3=1
}

package() {
  make -C $pkgname PREFIX="$pkgdir/usr" install
}
